package config

import (
    "github.com/tietang/go-nacos"
    "github.com/tietang/props/kvs"
)

type NacosPropsConfigClient struct {
    kvs.MapProperties
    Client *nacos.NacosClient
    name   string
}

//get /nacos/v1/cs/configs
func (c *NacosPropsConfigClient) Get(req NacosConfigRequest) (string, error) {
    _, body, err := c.Client.Get(req.RequestGetEndpoint())
    return string(body), err
}

//POST /nacos/v1/cs/configs/listener
func (c *NacosPropsConfigClient) Listen() {

}

//POST /nacos/v1/cs/configs
func (c *NacosPropsConfigClient) Publish() {

}

//delete /nacos/v1/cs/configs
func (c *NacosPropsConfigClient) Delete() {

}
